#set(show_side_search = false)
#set(show_side_words = false)
#set(show_side_tagcloud = false)
#set(show_flinks = false)

#include("./layout.html")
#@layout()

#define css()
<link rel="stylesheet" href="css/post-content.css">
<link rel="stylesheet" href="js/fancybox/jquery.fancybox.min.css">
<link rel="stylesheet" href="js/prism/styles/#(option('japress_code_theme','BlackMac')).css">
<style>
    .post-content-content img {
        border-radius: 10px;
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, .1);
    }
</style>
#end

#define script()
<script type="text/javascript" src="js/post-content.js"></script>
<script type="text/javascript" src="js/fancybox/jquery.fancybox.min.js"></script>
<script src="#(CPATH)/static/front/jpressfront.js"></script>
<script src="/static/components/jquery/jquery.form.min.js"></script>
<script src="js/prism/prism.js"></script>
#end

#define content()
<div class="post-main">
    <div class="post-content-body">
        <div class="crumbs-plane-body">
            <div class="crumbs-plane">
                <span class="corepress-crumbs-ul">
                    <li><a href="#(CPATH)/"><i class="fas fa-home"></i> 主页</a></li>
                    #for(menu : MENUS)
                    #if(menu.isActive)
                    <li><a href="#(menu.url ??)">#(menu.text ??)</a></li>
                        #if(menu.hasChild())
                                    #for(childMenu : menu.getChilds())
                                    #if(childMenu.isActive)
                                        <li><a href="#(childMenu.url ??)">#(childMenu.text ??)</a></li>
                                    #end
                                    #end
                                #end
                    #end
                    #end
                </span>
            </div>
        </div>
        <div class="post-content">
            <h1 class="post-title">#(page.title)</h1>
            <div class="post-info">
                <div class="post-info-left">
                    <time class="entry-date published" datetime="#(page.created)>"><i class="far fa-clock"></i>
                        #date(page.created,'yyyy年MM月dd日 HH:mm') </time>
                    <span class="dot"> •</span>
                    <span><i class="fa fa-eye" aria-hidden="true"></i>#(page.view_count ?? 0) 阅读</span>

                </div>
                <div class="post-info-right">
                    <span title="关闭或显示侧边栏" onclick="toggleSidebar(this)" class="post-info-switch-sidebar post-info-switch-sidebar-show"><i class="fas fa-toggle-on"></i></span>
                </div>
            </div>
            <div class="post-content-post">
                <div class="post-content-content">
                    #(page.content)
                </div>
                <div class="post-end-tools">

                    <div class="post-end-tool-btns">

                        <div class="post-qrcode-btn post-end-tool-btn-item" onclick="showplane('.post-qrcode-btn','#qrcode-plane',event)">
                            <svg t="1599190411371" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2306" width="200" height="200">
                                <path d="M742.8 121.5c-2.3 0.3-4.7 0.1-7 0.1-38 0-76-0.1-114 0.1-11 0-21.9 1.4-32.4 5.1-18.6 6.5-29.8 19.5-34.4 38.4-1.7 7-2.4 14.1-2.4 21.3 0 67.2-0.1 134.3 0.1 201.5 0 13.8 0.9 27.6 6.2 40.8 6.9 17.1 19.7 27.2 37.3 31.7 6.3 1.6 12.8 2.2 19.3 2.2h218c8.3 0 16.6-0.7 24.8-2.3 24.4-4.5 40.4-20.7 44.9-45 0.4-2.2-0.4-5.2 2.9-6.2v-232c-0.4-0.4-0.5-0.9-0.5-1.5-1.5-4.8-1.7-9.8-3.3-14.7-7.1-21-21.7-33.4-42.8-38.8-6.4-1.6-12.8-2.4-19.5-2.1-1.3 0.1-3 1-3.9-0.9h-89c-0.4 2.6-2.7 2.1-4.3 2.3z m98.7 40.7c4 0 8.1 0.9 11.9 2.1 6.9 2.2 10.7 7.6 10.7 15.1 0 74.8 0.1 149.6-0.1 224.4 0 11.2-8.6 18-21.1 18.1-38.2 0.3-76.3 0.1-114.5 0.1h-113c-4.5 0-8.6-1.3-12.7-2.7-8.5-3.1-9.6-10.5-9.7-17.9-0.2-37.5-0.1-75-0.1-112.5V183.4c0-6.5 1.5-12.5 6.9-17 4.6-3.8 10.3-4.3 15.6-4.3 75.4-0.1 150.8 0 226.1 0.1z" p-id="2307"></path>
                                <path d="M742 120c-39.5 0.1-79 0.1-118.4 0.1-9.4 0-18.6 1-27.7 3.1-11.6 2.7-22.1 7.7-30 16.7-10.6 12.1-14.8 26.9-14.8 42.6-0.2 69.6-0.2 139.3 0 208.9 0 9.1 0.7 18.3 2.8 27.2 2.8 11.7 7.6 22.5 16.7 30.5 11.7 10.3 25.9 15 41.5 15 74.1 0.1 148.3 0.1 222.4 0 9.3 0 18.7-0.5 27.7-3 19-5.4 33.6-15.9 40-35.8 1.7-5.3 1.8-10.9 3.8-16.1-3.2 1-2.5 4-2.9 6.2-4.5 24.4-20.5 40.5-44.9 45-8.2 1.5-16.5 2.3-24.8 2.3h-218c-6.5 0-13-0.6-19.3-2.2-17.5-4.5-30.4-14.6-37.3-31.7-5.3-13.1-6.2-27-6.2-40.8-0.2-67.2-0.1-134.3-0.1-201.5 0-7.2 0.7-14.3 2.4-21.3 4.6-18.9 15.8-31.9 34.4-38.4 10.5-3.7 21.4-5 32.4-5.1 38-0.2 76-0.1 114-0.1 2.3 0 4.7 0.2 7-0.1 1.7-0.2 3.9 0.2 4.2-2.4-1.2 2.1-3.2 0.9-4.9 0.9zM120.6 410.3c2 12.5 5.5 24.4 14.3 34 11.5 12.7 26.5 18 43 18.1 75.1 0.3 150.2 0.3 225.4 0 9.4 0 18.9-1 28.1-3.9 24.5-7.7 39.1-27.3 39.1-53.1 0-74 0-147.9 0.1-221.9 0-6.4-0.8-12.6-2.4-18.8-5.8-22.4-24.5-39.1-47.5-42.3-4.1-0.6-8.2-1.1-12.4-1.1-2 0-4.5 0.6-5.2-2.4h-89c-1.3 2.1-3.3 0.9-4.9 0.9-41.1 0.1-82.2-0.2-123.3 0.2-14.8 0.1-29.2 2.6-42.2 10.7-12.5 7.8-19.8 19.1-23.7 33-0.8 2.7-0.2 5.7-1.9 8.2v233c2.9 0.9 2.2 3.5 2.5 5.4z m39.5-231c0-8.1 6.2-14.6 14.5-16.3 4.4-0.9 8.8-1 13.2-1h219c4.3 0 8.4 0.8 12.4 2 7.5 2.4 10.8 6.9 10.8 14.6v225.5c0 8.2-3.8 13.3-11.6 15.9-4 1.3-8.1 2.1-12.4 2-37.2-0.1-74.3-0.1-111.5-0.1-37.7 0-75.3 0.1-113-0.1-6.3 0-12.6-0.9-17.3-6.1-2.7-3-4.1-6.3-4.1-10.1-0.1-75.3-0.1-150.8 0-226.3z" p-id="2308"></path>
                                <path d="M119 407.5c0.1 8.9 2.6 17.3 6.4 25.1 10.4 21.4 28.9 31 51.6 31.2 74.5 0.6 149 0.2 223.4 0.2 9.3 0 18.6-0.8 27.7-3 27.1-6.7 43.6-26.4 43.8-54.4 0.5-73.8 0.2-147.6 0.2-221.4 0-4.9 0-9.8-0.9-14.7-3-16.2-10.7-29.4-24.2-39-11-7.8-23.5-11-36.9-11.4-2.3-0.1-4.9 1.2-6.9-0.9 0.7 3 3.3 2.4 5.2 2.4 4.2 0 8.3 0.6 12.4 1.1 23 3.2 41.7 19.9 47.5 42.3 1.6 6.2 2.4 12.4 2.4 18.8-0.1 74 0 147.9-0.1 221.9 0 25.7-14.6 45.3-39.1 53.1-9.2 2.9-18.7 3.9-28.1 3.9-75.1 0.2-150.2 0.3-225.4 0-16.5-0.1-31.4-5.4-43-18.1-8.8-9.7-12.3-21.5-14.3-34-0.3-1.9 0.4-4.6-2.6-5.2 1.3 0.1 0.9 1.3 0.9 2.1zM191.8 882.7c2.1-0.3 4.3-0.1 6.5-0.1h206c8.4 0 16.6-1 24.7-3.1 25.5-6.6 41.4-26.9 41.5-53.2 0.1-25.3 0-50.7 0-76v-148c0-32.3-21.4-56.2-53.6-59.7-11.4-1.2-22.9-1.7-34.4-2-34.5-0.7-69 0.5-103.4 1.3-33 0.8-66 0.2-98.9 0.7-11.5 0.2-22.6 2.7-32.7 8.1-13.6 7.2-21.9 18.5-25.7 33.4-0.7 2.8-0.1 6.5-3.7 8v234c2 5.5 2.2 11.4 3.9 17.1 5.9 20.7 19.4 33.3 39.8 38.9 6.5 1.8 13.2 2.3 19.9 2.1 1.4 0 3.3-1.1 4.4 0.9h2c0.2-2.3 2.1-2.2 3.7-2.4z m-11.4-40.6c-12.2 0-20.7-6.6-20.6-20.5 0.4-73.3 0.2-146.6 0.1-220 0-11.8 7-18.1 18.3-18.5 74.6-2.4 149.1-0.5 223.7-0.8 6.4 0 13.4-0.4 19.6 3 5.4 3 8.5 7.2 8.5 13.7-0.1 37.5 0 75 0 112.5 0 37.2-0.2 74.3 0.1 111.5 0.1 12.1-7.8 17.6-18.7 19.3-8.6 1.3-17 0-25.5-0.1-68.5-0.2-137-0.1-205.5-0.1z" p-id="2309"></path>
                                <path d="M193.5 884.2c67.8-0.1 135.7-0.1 203.5 0 9.4 0 18.7-0.2 28-2.1 12.5-2.5 23.8-7.8 32.5-17.1 9.7-10.4 14.5-23.4 14.5-37.6 0.2-74.3 0.1-148.7 0.1-223 0-6.3-0.4-12.4-2-18.5-5.3-19.9-17.3-33.7-36.7-41.3-13.3-5.2-27.3-5-41-5.3-23.1-0.5-46.2-0.9-69.3 0.5-19 1.2-38.2 0.3-57.3 1-27.6 0.9-55.3 0.3-83 0.2-6.4 0-12.7 0.6-19 2-18.4 4.2-32.5 13.8-40.6 31.3-2.6 5.7-2.8 12-5.2 17.7 3.7-1.5 3-5.2 3.7-8 3.8-14.9 12.2-26.2 25.7-33.4 10.2-5.4 21.2-7.9 32.7-8.1 33-0.5 65.9 0.1 98.9-0.7 34.5-0.8 68.9-2 103.4-1.3 11.5 0.2 23 0.7 34.4 2 32.2 3.5 53.5 27.4 53.6 59.7v148c0 25.3 0.1 50.7 0 76-0.2 26.4-16 46.6-41.5 53.2-8.1 2.1-16.3 3.1-24.7 3.1h-206c-2.2 0-4.3-0.1-6.5 0.1-1.6 0.2-3.5 0-3.7 2.4 1.5-1.9 3.7-0.8 5.5-0.8z" p-id="2310"></path>
                                <path d="M143.6 130.9c13-8 27.4-10.6 42.2-10.7 41.1-0.4 82.2-0.1 123.3-0.2 1.6 0 3.6 1.2 4.9-0.9-1.7 1-3.6 0.5-5.4 0.5-44.8 0.3-89.6-0.8-134.4 0.6-18.9 0.6-34.9 8.1-46.5 23.6-6.3 8.4-9.1 18-9.7 28.3 1.8-2.4 1.2-5.4 1.9-8.2 4-13.9 11.2-25.2 23.7-33zM840 120c6.6-0.3 13.1 0.5 19.5 2.1 21 5.4 35.7 17.8 42.8 38.8 1.6 4.8 1.8 9.9 3.3 14.7v-0.4c0.4-28.1-24.4-53.2-52.7-55.3-5.6-0.4-11.2 0.5-16.8-0.9 0.8 2.1 2.6 1.1 3.9 1zM181.6 884.2c-6.7 0.2-13.4-0.3-19.9-2.1-20.4-5.6-33.9-18.2-39.8-38.9-1.6-5.7-1.8-11.6-3.9-17.1 1.1 5.3 0.8 10.8 2.1 16.1 5.5 22.8 25.5 40.6 48.6 42 5.8 0.4 11.6-0.6 17.3 0.8-1.1-1.9-3-0.9-4.4-0.8z" p-id="2311"></path>
                                <path d="M608.4 667.2c-12.3 0.2-20.4 8.3-20.4 20V859c0 12.3 8.5 20.1 20.8 19.9 12.9-0.2 21-6.9 21.1-19.7 0.2-57.4 0.1-114.9 0-172.3 0-12-8.4-19.9-21.5-19.7zM861.4 667.4c-9.9-1.8-23.3 4.9-23.3 18.2-0.2 29.2 0 58.3 0 87.5v87c0 1.6-0.1 3.4 0.4 4.9 3.3 9.4 14.4 16.2 23.5 14 11.4-2.7 17.9-7.2 18-21.4 0.2-55.5 0.1-111 0.1-166.5-0.1-14.4-4.6-21.1-18.7-23.7zM768.7 727.3c-2.6-9.4-13-16.8-22.1-15.1-12.4 2.4-19.4 6.6-19.5 20.9-0.3 41.1-0.1 82.3-0.1 123.4 0 13.8 5.7 20 17.5 22.2 11.1 2.1 24.4-4.5 24.5-19.1v-63.5-64.5c0-1.3 0-2.9-0.3-4.3zM741 544.8c-8.7 1.9-14 10.2-14 19.8V653c0 13.1 4 21 18.1 23.7 10.3 1.9 24-5.2 23.9-18.5-0.1-15.8 0-31.6 0-47.5 0-15.3-0.2-30.6 0-46 0.3-19-14.6-22.8-28-19.9zM622 547.4c-4.9-3.4-10.1-3.3-15.4-3.3-10.5 0-18.5 7.9-18.5 18.3v26c0 9-0.1 18 0 27 0.1 4.6 1.3 8.7 4.9 12.3 5.2 5.2 11.2 6.7 18.2 6.5 9.9-0.3 18.8-8.9 18.8-18.7 0.1-17.7 0.2-35.3-0.1-53 0-6.1-2.4-11.3-7.9-15.1zM878.3 555.9c-2.2-6.2-9.8-11.8-17.9-12-14.3-0.5-23.6 7.9-22.5 22.8 0.5 7 0.1 14 0.1 21v25c0 1.5 0 3 0.4 4.4 3.2 10.3 12.9 15.5 23.9 14 11-1.6 17.4-8.4 17.6-19.7 0.3-15.8 0.1-31.7 0.1-47.5 0-2.9-0.8-5.5-1.7-8zM352 257.8c-1.9-7.3-7.9-12.7-15.4-13.7-1.3-0.2-2.7-0.4-4-0.4-0.6 0-1.5 0.2-1.7-0.8h-28.8c-0.4 0.7-1.1 0.3-1.6 0.3-13.3 0-26.6-0.1-39.9 0.1-4.8 0-9.5 0.9-13.7 3.5-4.1 2.5-6.4 6.2-7.7 10.7-0.2 0.9 0 1.9-0.6 2.6v75.5c1 0.2 0.7 1.1 0.8 1.7 0.7 4.1 1.8 7.9 4.6 11 3.7 4.1 8.6 5.8 13.9 5.9 24.3 0.1 48.7 0.1 73 0 3.1 0 6.1-0.3 9.1-1.3 7.9-2.5 12.7-8.9 12.7-17.2v-71.9c0.1-2-0.2-4-0.7-6zM785.5 250.1c-1.9-7.3-7.9-12.7-15.4-13.7-1.3-0.2-2.7-0.4-4-0.4-0.6 0-1.5 0.2-1.7-0.8h-28.8c-0.4 0.7-1.1 0.3-1.6 0.3-13.3 0-26.6-0.1-39.9 0.1-4.8 0-9.5 0.9-13.7 3.5-4.1 2.5-6.4 6.2-7.7 10.7-0.2 0.9 0 1.9-0.6 2.6v75.5c1 0.2 0.7 1.1 0.8 1.7 0.7 4.1 1.8 7.9 4.6 11 3.7 4.1 8.6 5.8 13.9 5.9 24.3 0.1 48.7 0.1 73 0 3.1 0 6.1-0.3 9.1-1.3 7.9-2.5 12.7-8.9 12.7-17.2v-71.9c0.2-2-0.2-4.1-0.7-6zM351.4 676.6c-1.9-7.3-7.9-12.7-15.4-13.7-1.3-0.2-2.7-0.4-4-0.4-0.6 0-1.5 0.2-1.7-0.8h-28.8c-0.4 0.7-1.1 0.3-1.6 0.3-13.3 0-26.6-0.1-39.9 0.1-4.8 0-9.5 0.9-13.7 3.5-4.1 2.5-6.4 6.2-7.7 10.7-0.2 0.9 0 1.9-0.6 2.6v75.5c1 0.2 0.7 1.1 0.8 1.7 0.7 4.1 1.8 7.9 4.6 11 3.7 4.1 8.6 5.8 13.9 5.9 24.3 0.1 48.7 0.1 73 0 3.1 0 6.1-0.3 9.1-1.3 7.9-2.5 12.7-8.9 12.7-17.2v-71.9c0.1-2-0.2-4-0.7-6z" p-id="2312"></path>
                            </svg>                            二维码
                        </div>
                        <div class="post-reward-btn post-end-tool-btn-item" onclick="showplane('.post-reward-btn','#reward-plane',event)">
                            <!--?xml version="1.0" standalone="no"?--><svg t="1611304985070" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2030" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M511.413646 65.750493c-247.232824 0-447.682136 200.421682-447.682136 447.682136S264.180821 961.115787 511.413646 961.115787s447.682136-200.421682 447.682136-447.682136S758.645446 65.750493 511.413646 65.750493zM511.413646 905.155265c-216.298278 0-391.721613-175.396729-391.721613-391.721613s175.423335-391.721613 391.721613-391.721613c216.353536 0 391.721613 175.396729 391.721613 391.721613S727.766159 905.155265 511.413646 905.155265z" p-id="2031"></path><path d="M526.387685 472.448192c-10.92891 10.956539-28.635177 10.956539-39.569204 0L328.557014 314.186725c-10.92891-10.956539-10.92891-28.640294 0-39.569204l0 0c10.92891-10.956539 28.635177-10.956539 39.569204 0l158.261467 158.261467C537.316595 443.813015 537.316595 461.519282 526.387685 472.448192L526.387685 472.448192z" p-id="2032"></path><path d="M496.437559 472.448192c-10.92891-10.92891-10.92891-28.635177 0-39.569204L654.699026 274.617521c10.93505-10.92891 28.640294-10.92891 39.569204 0l0 0c10.92891 10.92891 10.92891 28.635177 0 39.569204L536.006763 472.448192C525.072737 483.377102 507.36647 483.377102 496.437559 472.448192L496.437559 472.448192z" p-id="2033"></path><path d="M735.254713 485.453391c0 15.467273-12.512988 27.980261-27.980261 27.980261l-391.721613 0c-15.468296 0-27.980261-12.512988-27.980261-27.980261l0 0c0-15.467273 12.511965-27.980261 27.980261-27.980261l391.721613 0C722.740702 457.473129 735.254713 469.986117 735.254713 485.453391L735.254713 485.453391z" p-id="2034"></path><path d="M735.254713 597.373413c0 15.467273-12.512988 27.980261-27.980261 27.980261l-391.721613 0c-15.468296 0-27.980261-12.512988-27.980261-27.980261l0 0c0-15.467273 12.511965-27.980261 27.980261-27.980261l391.721613 0C722.740702 569.393151 735.254713 581.90614 735.254713 597.373413L735.254713 597.373413z" p-id="2035"></path><path d="M539.392884 765.254981c0 15.467273-12.512988 27.980261-27.980261 27.980261l0 0c-15.468296 0-27.980261-12.512988-27.980261-27.980261L483.432361 485.453391c0-15.467273 12.511965-27.980261 27.980261-27.980261l0 0c15.467273 0 27.980261 12.512988 27.980261 27.980261L539.392884 765.254981z" p-id="2036"></path></svg>                                打赏
                        </div>

                        <div id="share-plane" class="post-pop-plane">
                            <div class="post-share-list"></div>
                        </div>

                        <div id="qrcode-plane" class="post-pop-plane">
                            <div id="qrcode-img"></div>
                        </div>
                        <div id="reward-plane" class="post-pop-plane">
                            #if(option('japress_dashang') == null)
                            请在后台主题设置处设置打赏图片
                            #else
                            <img src="#(CPATH)#option('japress_dashang')" />
                            #end
                        </div>
                    </div>


                </div>
                <div class="post-tool-plane">
                </div>
            </div>
        </div>
    </div>



    <div id="comments" class="responsesWrapper">
        <div class="reply-title">
            发表评论
        </div>

        #if(option("page_comment_enable","true"))
        <div id="respond" class="comment-respond">
            <form action="#(CPATH)/page/postComment" id="jpress-comment-form" method="post" autocomplete="off"
                  class="comment-form">
                <input type="hidden" name="pageId" value="#(page.id ??)">
                <input type="hidden" name="render" value="default">
                <input type="hidden" name="pid" id="comment-pid">
                <div class="comment-user-plane">
                    <div class="comment_form_textarea_box comment-textarea"><textarea class="comment_form_textarea" name="content"
                                                                     id="comment" placeholder="发表你的看法" required
                                                                     rows="5"></textarea>
                    </div>
                </div>
                #if(!USER)
                <div class="comment_userinput">
                    <div class="comment-form-author"><input id="nickname" name="nickname" placeholder="昵称(*)" type="text"
                                                            value="" size="30" required></div>
                    <div class="comment-form-email"><input id="email" name="email" type="text" placeholder="邮箱(*)"
                                                           value="" required></div>
                </div>
                #end
                #if(option("page_comment_vcode_enable","true"))
                <div class="comment-user-plane">
                    <div class="comment_form_textarea_box comment_userinput input" style="padding-left: 0; justify-content: left;">
                        <input name="captcha" id="comment-captcha" placeholder="请输入验证码" type="text" value="" size="30" required class="required">
                        <img class="vcode-img" src="#(CPATH)/commons/captcha"
                             onclick="this.src='#(CPATH)/commons/captcha?d='+Math.random();" cdn-exclude id="comment-vcode">
                    </div>
                </div>
                #end
                <div class="form-submit">
                    <div style="text-align: right">
                        <input name="submit" type="submit" id="submit" class="button primary-btn" value="发表评论"></div>
                </div>
            </form>
        </div>
        #end
        <!--/respone-->
        <h3 class="comments-title">全部评论</h3>

        <ol class="commentlist">
            #pageCommentPage()
            #for(comment : commentPage.list ??)
            <li class="comment">
                <div class="comment-item">
                    <div class="comment-media">
                        <div class="avatar-img">
                            <img src="#(comment.user.avatar ?? (TPATH + '/img/avatar.png'))">
                        </div>
                    </div>
                    <div class="comment-metadata">
                        <div class="media-body">
                            <p class="author_name">#(comment.author)</p>
                            <div class="comment-text">
                                #(comment.content)
                            </div>
                        </div>
                        <span class="comment-pub-time">#date(comment.created )</span>

                        #if(option("page_comment_enable","true"))
                        <span class="comment-btn-reply comment-reply-btn">
                         <a rel="nofollow" class="comment-reply-link toReplyComment"
                            href="javascript:;"
                            data-cid="#(comment.id)"
                            data-author="#(comment.author ??)"><i class="fa fa-reply"></i> 回复</a>
                        </span>
                        #end

                    </div>
                </div>

                #if(comment.parent)
                <ol class="children">
                    <li class="comment">
                        <div class="comment-item">
                            <div class="comment-media">
                                <div class="avatar-img">
                                    <img src="#(comment.parent.user.avatar ?? (TPATH + '/img/avatar.png'))">
                                </div>
                            </div>
                            <div class="comment-metadata">
                                <div class="media-body">
                                    <p class="author_name">#(comment.parent.author)</p>
                                    <div class="comment-text">
                                        #(comment.parent.content)
                                    </div>
                                </div>
                                <span class="comment-pub-time">#date(comment.parent.created )</span>
                                #if(option("page_comment_enable","true"))
                                <span class="comment-btn-reply comment-reply-btn">
                                 <a rel="nofollow" class="comment-reply-link toReplyComment"
                                    href="javascript:;"
                                    data-cid="#(comment.parent.id)"
                                    data-author="#(comment.parent.author ??)"><i class="fa fa-reply"></i> 回复</a>
                                </span>
                                #end
                            </div>
                        </div>

                    </li><!-- #comment-## -->
                </ol><!-- .children -->
                #end
            </li><!-- #comment-## -->
            #end
            #end
        </ol>

        #pageCommentPaginate(anchor="comments")
        <nav class="comment-navigation pages">
            #for(page : pages)
            <a class="page-numbers #(page.style)" href="#(page.url ??)">#(page.text)</a>
            #end
        </nav>
        #end

    </div>


</div>

<script type="text/javascript">
    $(document).ready(function () {
        $('.menu-header-list > .menu-item-has-children');
        var imgarr = $('.post-content-content').find('img');
        for (var i = 0; i < imgarr.length; i++) {
            var src = $(imgarr[i]).attr('src')
            $(imgarr[i]).attr("src","/templates/japress/img/loading.gif");
            $(imgarr[i]).attr("title","点击图片以全屏查看");
            $(imgarr[i]).attr("data-original",src);
            var imgurl = $(imgarr[i]).attr('data-original');
            var html = imgarr[i].outerHTML;
            if ($(imgarr[i]).parent()[0].tagName != 'A') {
                $(imgarr[i]).replaceWith('<a data-fancybox="gallery" data-type="image" href="' + imgurl + '">' + html + '</a>');
            }
        }
        $.fancybox.defaults.buttons = [
            "close"
        ];
        $('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"], a[href*=".bmp"]').fancybox({});
    });
</script>
#end
